<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
  <head>
    <base href="<%=basePath%>">
    <title>My JSP 'code.jsp' starting page</title> 
  </head>
  <body>
  		<c:if test="${not empty mess}">
	    	access_token:${mess.access_token}<br>
	    	refresh_token:${mess.refresh_token}<br>
	    	scope:${mess.scope}<br>
	    	openid:${mess.openid}<br>
	    	expires_in:${mess.expires_in}<br>
	    	unionid:${mess.unionid}<br>
    	</c:if>
    	<c:if test="${not empty user}">
    	nickname:${user.nickname}<br>
    	sex:${user.sex}<br>
    	city:${user.city}<br>
    	country:${user.country}<br>
    	headimgurl:${user.headimgurl}<br>
    	privilege:${user.privilege}<br>
    	unionid:${user.unionid}<br>
    	</c:if>
  </body>
</html>
